#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void jh(int *n, int *m)
{
	int mid = *n;
	*n = *m;
	*m = mid;
}

int main()
{
	int n = 0;
	int m = 0;
	scanf("%d %d", &n, &m);
	jh(&n, &m);
	printf("%d %d\n", n,m);
	return 0;
}